﻿using DapperExtensions;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET_DbCommon.Model
{
    [Table("exam_testquestion")]
    public partial class Exam_TestQuestionModel : Entity
    {
        /// <summary>
        /// 试卷名称
        /// </summary>
        public string TestName { get; set; }

        /// <summary>
        /// 试卷考试时长;单位：秒
        /// </summary>
        public int CountDown { get; set; }

        /// <summary>
        /// 试卷描述
        /// </summary>
        public string Describes { get; set; }

        /// <summary>
        /// 场景文件;保存的信号系统json文件
        /// </summary>
        [JsonIgnore]
        public byte[] SceneFile { get; set; }

        /// <summary>
        /// 是否为主场景
        /// </summary>
        public string IsMain { get; set; }

        /// <summary>
        /// 附场景;如果有多个副场景，英文逗号隔开
        /// </summary>
        public string AttachQuestion { get; set; }

        /// <summary>
        /// 停运分数
        /// </summary>
        public decimal SuspensionScore { get; set; }

        /// <summary>
        /// 晚点分数
        /// </summary>
        public decimal LateScore { get; set; }

        /// <summary>
        /// 迫停分数
        /// </summary>
        public decimal StopScore { get; set; }

        /// <summary>
        /// 提交元素分数
        /// </summary>
        public decimal SubmitScore { get; set; }

        /// <summary>
        /// 所占分数百分比
        /// </summary>
        public decimal Percent { get; set; }

        /// <summary>
        /// 试卷分数
        /// </summary>
        public string TotalScore { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime UpdateTime { get; set; }

        /// <summary>
        /// 试卷表索引
        /// </summary>
        public int PaperTestQuestionId { get; set; }
        /// <summary>
        /// 该场景涉及到的角色
        /// </summary>
        public string Roles { get; set; }
        /// <summary>
        /// 默认车站
        /// </summary>
        public int StationId { get; set; }
        /// <summary>
        /// 场景类型 FAO、CBTC
        /// </summary>
        public string SceneType { get; set; }
        /// <summary>
        /// 考核试卷步骤表
        /// </summary>
        [Computed]
        public List<Exam_TestQuestion_TaskModel> Exam_Tasks { get; set; }
    }
}
